/* vim:ft=objc:
 * $Id: MacBiff.h 152 2005-11-28 01:53:29Z bmoore $
 *
 * Copyright (c) 2004, 2005  Branden J. Moore.
 *
 * This file is part of MacBiff, and is free software; you can redistribute
 * it and/or modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * MacBiff is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with MacBiff; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA  02111-1307 USA.
 *
 */

#import <Cocoa/Cocoa.h>

#import "DetachList.h"

@interface MacBiff : NSObject
{
	IBOutlet NSTextField *aboutVersionTextField;
	IBOutlet NSTextField *aboutRevTextField;
	IBOutlet NSWindow *aboutWin;
	IBOutlet DetachList *detachControl;

	IBOutlet NSWindow *actWin;
	BOOL actWinCloseAfterCheck;

	NSStatusItem *systemBar;
	NSMenu *mainMenu;
	NSLock *menuLock;
	NSMenuItem *checkStatusMenuItem; /* CheckNow/Checking item */

	NSMutableArray *accounts;
}

- (IBAction) goToMacBiff: (id)sender;
- (void) setBarTitle: (id)sender;
- (void) noOp: (id)sender;
- (void) menuCheckNow: (id)sender;
- (void) menuConfigure: (id)sender;
- (void) menuDetach: (id)sender;
- (void) menuShowActivity: (id) sender;
- (void) menuLaunchMail: (id) sender;
- (void) menuAbout: (id) sender;
- (IBAction) closeAboutWin: (id)sender;
- (void) menuQuit: (id) sender;

@end

/* Defines to take care of localization */

#define CHECK_NOW_STR @"Check Now"
#define STOP_CHECK_STR @"Stop Check"
#define CONFIGURE_STR @"Preferences"
#define DETACH_STR @"Detach"
#define SHOW_ACTIVITY_STR @"Show Activity"
#define LAUNCH_MAIL_STR @"Launch Mail"
#define ABOUT_STR @"About MacBiff"
#define QUIT_STR @"Quit"

/* EOF */
